from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import server

urlpatterns = [
    # 加载首页
    path("", server.IndexController.index),
    # 获取首页菜单
    path("index/getMenu", server.MenuController.get_index_menu),
    # 获取推荐商品
    path("getRecommendGoods", server.GoodsController.get_recommend_goods),
    # 获取精选商品
    path("getLikeGoods", server.GoodsController.get_like_goods),
    # 获取猜你喜欢商品
    path("getSelectionGoods", server.GoodsController.get_selection_goods),

    # 加载分类页
    path("classification.html", server.IndexController.to_classification),
    # 加载详情
    path("details.html", server.IndexController.to_details),
    # 加入收藏
    path("addCollection", server.GoodsController.add_collection),

    # 加载登录页
    path("login.html", server.IndexController.to_login),
    # 加载注册页
    path("reg.html", server.IndexController.to_reg),
    # 加载找回密码
    path("resetPassword.html", server.IndexController.to_reset_password),

    # 加载个人中心
    path("personal.html", server.IndexController.to_personal),
    # 加载个人资料
    path("personal/information.html", server.IndexController.to_information),
    # 获取足迹信息
    path("personal/getFootprint", server.GoodsController.get_footprint),
    # 加载我的收藏
    path("personal/collection.html", server.IndexController.to_collection),
    # 获取收藏信息
    path("personal/getCollection", server.GoodsController.get_collection),
    # 加载我的消息
    path("personal/feedback.html", server.IndexController.to_feedback),
    # 获取我的消息
    path("personal/getFeedback", server.FeedbackController.get_feedback),
    # 获取我的消息
    path("personal/submitFeedback", server.FeedbackController.submit_feedback),

    # 获取验证码
    path("auth/getCode", server.AuthController.get_auth_code),
    # 注册
    path("auth/reg", server.AuthController.reg),
    # 登录
    path("auth/login", server.AuthController.login),
    # 退出登录
    path("auth/logout", server.AuthController.logout),
    # 重置密码
    path("auth/resetPassword", server.AuthController.reset_password),
    # 更换头像
    path("auth/exitIcon", server.AuthController.edit_icon),

    # 智能回复
    path("customer/reply", server.CustomerController.reply),

]
